#include "ConjString.h"

using namespace std;

int main() {


	ConjString c;
	String s4("hola");
	String s1("gutierrez");
	String s2("gonzalez");
	String s3("gutierro");
	c.agregar(s4);
	c.agregar(s1);
	c.agregar(s2);
	c.agregar(s3);

	c.eliminar(s2);

	c.eliminar(s3);	
	c.eliminar(s4);
	
	cout << "\n" << c << "\n";
	cout << c.dameTamano();
	cout << "\n Es vacio: " << c.vacio() << "\n";
	c.eliminar(s1);
	cout << "\n" << c << "\n";

	cout << c.dameTamano();
	cout << "\n Es vacio: " << c.vacio() << "\n";
	c.agregar(s4);
	c.agregar(s1);
	c.agregar(s2);
	c.agregar(s3);
	cout << "\n" << c << "\n";
	IteradorConjString it(c);
	s1 = it.proximo();
	cout << s1;
	s1 = it.proximo();
	cout << s1;
	cout << "Hay proximo: " << it.tieneProximo() << "\n";
	s1 = it.proximo();
	cout << s1;
	s1 = it.proximo();
	cout << s1;
	cout << "Hay proximo: " << it.tieneProximo() << "\n";
}
